<!-- 首页热销推荐模块 -->
<template>
  <div>
    <div class="title">
      猜你喜欢
    </div>
    <ul>
      <!-- 可以使用router-link中的tag属性指定转化为Li标签，:to是绑定相应的ID -->
      <router-link tag="li" :to="'/detail/'+itme.id" class="itme border-bottom" v-for="itme of Recommendlist" :key="itme.id">
        <img class="itme-img" :src="itme.imgUrl"/>
        <div class="info">
          <p class="info-title">{{itme.title}}</p>
          <p class="info-decs">{{itme.desc}}</p>
          <p class="info-money">￥{{itme.picre}}<span class="info-money-text">起</span></p>
        </div>
      </router-link>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'Recommend',
  props: {
    Recommendlist: Array
  }
}
</script>

<style lang="stylus" scoped>
  @import '~styles/Mixins.styl'
  .title
    background: #EEEEEE
    text-indent: 0.3rem
    font-size: 0.3rem
    line-height: .8rem
    margin-top: .2rem
  .itme
    display: flex
    overflow: hidden
    height: 2.1rem
    .itme-img
      width: 1.9rem
      height: 1.9rem
      padding: .1rem
    .info
      min-width: 0
      padding: .2rem
      flex: 1
      .info-title
        line-height: .54rem
        font-size: .32rem
        ellipsis()
      .info-decs
        line-height: .60rem
        color: #ccc
        ellipsis()
      .info-money
        line-height: .54rem
        color: #f19207
        font-size: 0.4rem
        font-weight: bold
        .info-money-text
          color: #333
          font-size: 0.1rem
          text-indent: 0.1rem
          display: inline-block
</style>
